package com.f5.management.controller;

import com.f5.management.entity.Community;
import com.f5.management.entity.User;
import com.f5.management.service.CommunityService;
import com.f5.management.service.UserService;
import com.f5.management.service.UserService2;
import com.f5.management.utils.PageResult;
import com.f5.management.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/user")
@CrossOrigin(origins = {"http://localhost:8080", "null"})
public class UserController {
    @Autowired
    private UserService2 userService2;

    @RequestMapping("/findRidByName")
    public int findRidByName(String memberName){

        return userService2.findRidByName(memberName);
    }
}

















